import Home from '../views/home.vue'
import {RouteRecordRaw} from 'vue-router'


const children = [
    {path: 'home', component: Home},
    {path: 'about', component: Home},
    {path: 'posts', component: Home},
];

// 路由配置
export const constantRouterMap: RouteRecordRaw[] = [
    {
        path: '/',
        name: '首页',
        component: Home,
        children:children
    }, {
        path: '/about',
        name: '关于',
        component: () => import('../views/exception/404.vue'),
    },
    {
        path: '/404',
        name: '404',
        component: () => import('../views/exception/404.vue'),
    },
    {
        path: '/403',
        name: '403',
        component: () => import('../views/exception/403.vue'),
    },
]
